"""
URL configuration for order_management_platform project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from www.views import account, level, price

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('login/', account.login, name='login'),
    path('sms/login/', account.sms_login, name='sms_login'),
    path('send/sms/', account.send_sms, name='send_sms'),
    path('logout/', account.logout, name='logout'),
    path('home/', account.home, name='home'),

    # 级别管理
    path('level/list/', level.level_list, name='level_list'),
    path('level/add/', level.level_add, name='level_add'),
    path('level/edit/<int:uid>/', level.level_edit, name='level_edit'),
    path('level/delete/<int:uid>/', level.level_delete, name='level_delete'),

    # 价格策略
    path('price/list/', price.price_list, name='price_list'),
    path('price/add/', price.price_add, name='price_add'),
    path('price/edit/<int:uid>/', price.price_edit, name='price_edit'),
    path('price/delete/<int:uid>/', price.price_delete, name='price_delete'),
]
